package com.ruowei.modules.sys.pojo;

import com.ruowei.modules.sys.domain.table.SysOffice;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class SysOfficeNode {

    @ApiModelProperty(value = "机构信息")
    private SysOffice sysOffice;

    @ApiModelProperty("类型")
    private Type type;

    @ApiModelProperty(value = "下属结构信息")
    private List<SysOfficeNode> children = new ArrayList<>();

    public enum Type {
        CITY,
        OFFICE
    }
}
